
using System;
using System.Collections;

namespace FutureOpen.Core
{
	#region Tagusr

	/// <summary>
	/// Tagusr object for NHibernate mapped table 'tagusr'.
	/// </summary>
	public class Tagusr
		{
		#region Member Variables
		
		protected int _tagusr_id;
		protected string _tagusr_text;
		protected int _tagusr_count;
		protected short _tagusr_bin;
		protected IList _tagusrmap_tagtagusrmaps;

		#endregion

		#region Constructors

		public Tagusr() { }

		public Tagusr( string tagusr_text, int tagusr_count, short tagusr_bin )
		{
			this._tagusr_text = tagusr_text;
			this._tagusr_count = tagusr_count;
			this._tagusr_bin = tagusr_bin;
		}

		#endregion

		#region Public Properties

		public virtual int Tagusr_id
		{
			get {return _tagusr_id;}
			set {_tagusr_id = value;}
		}

		public virtual string Tagusr_text
		{
			get { return _tagusr_text; }
			set
			{
				if ( value != null && value.Length > 135)
					throw new ArgumentOutOfRangeException("Invalid value for Tagusr_text", value, value.ToString());
				_tagusr_text = value;
			}
		}

		public virtual int Tagusr_count
		{
			get { return _tagusr_count; }
			set { _tagusr_count = value; }
		}

		public virtual short Tagusr_bin
		{
			get { return _tagusr_bin; }
			set { _tagusr_bin = value; }
		}

		public virtual IList Tagusrmap_tagtagusrmaps
		{
			get
			{
				if (_tagusrmap_tagtagusrmaps==null)
				{
					_tagusrmap_tagtagusrmaps = new ArrayList();
				}
				return _tagusrmap_tagtagusrmaps;
			}
			set { _tagusrmap_tagtagusrmaps = value; }
		}

        
		#endregion
		
        
	}

	#endregion
}
